package com.zhiyou.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zhiyou.service.Office_TelService;
import com.zhiyou.utils.JsonResult;


@RestController
@RequestMapping("office_tel/")
public class Office_TelController {

	@Autowired
	Office_TelService office_TelService;
	@GetMapping(value="list")
	public JsonResult show(HttpServletRequest request, HttpServletResponse response){
		return new JsonResult(office_TelService.select(),"查询成功");
		
	}
	@PutMapping("update")
	public JsonResult update(HttpServletRequest request, HttpServletResponse response){
		return new JsonResult(office_TelService.select(),"查询成功");
		
	}
}
